#ifndef __KMALLOC_H__
#define __KMALLOC_H__

#include <types.h>

#define GFP_BUFFER	0x00
#define GFP_ATOMIC	0x01
#define GFP_USER	0x02
#define GFP_KERNEL	0x03
#define GFP_NOBUFFER	0x04
#define GFP_NFS		0x05
#define GFP_IO		0x06

/* Flag - indicates that the buffer will be suitable for DMA.  Ignored on some
   platforms, used as appropriate on others */

#define GFP_DMA		0x80

#define GFP_LEVEL_MASK 0xf

long kmalloc_init(long start_mem, long end_mem);
void *kmalloc(size_t size, int priority);
void kfree(void *obj);
void *kmem_map(void *addr, size_t size);

#define kfree_s(a,b) kfree(a)


#endif	/* __KMALLOC_H__ */
